/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package elsimulatorjava;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JPanel;

/**
 *
 * @author plitter
 */
public class EmergencyPanel extends JPanel {
    File img;
    BufferedImage imgEmergency;
    
    public EmergencyPanel() throws IOException {
        img = new File("images/Emergency.png");
        imgEmergency = ImageIO.read(img);
        setPreferredSize(new Dimension(imgEmergency.getWidth(), imgEmergency.getHeight()));
        
    }
    
    @Override
    protected void paintComponent(Graphics g) {
        g.drawImage(imgEmergency, 0, 0, null);
    }
}
